package com.example.util;


import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class ThreadPoolExecutorUtil {

    public static ThreadPoolExecutor getPoll(){
        return new ThreadPoolExecutor(1,10,5000,TimeUnit.SECONDS,new ArrayBlockingQueue<>(20));
    }
}